<?php

class Productoenv
{
	private $valormultiplicativo=1728;
	
    private $id;
	private $guia;
	private $paquete;
    private $descripcion;
    private $dimention_l;
    private $dimention_h;
    private $dimention_w;
    private $volumen;
	private $volumeweight;
	private $weight;
	private $num;
	private $den;
		    
	public function guarda_Productenv($guia,$paquete,$descripcion,$dimencion_l,$dimencion_h,$dimencion_w)
	{		
		$query="insert into producto_enviado values(null,".$paquete.",".$dimencion_l.",	".$dimencion_h.",".$dimencion_w.", '".$descripcion."', ".$guia.")";
		$query = Conectar($query);		
	}
	
	public function set_valores($guia,$paquete,$descripcion,$dimencion_l,$dimencion_h,$dimencion_w)
	{
		$this->paquete=$paquete;
		$this->descripcion=$descripcion;
		$this->dimention_h=$dimencion_h;
		$this->dimention_l=$dimencion_l;
		$this->dimention_w=$dimencion_w;			
		$this->num=$this->dimention_h*$this->dimention_l*$this->dimention_w;	
		$this->den=$this->valormultiplicativo*$this->paquete;
		$this->volumeweight=$this->num/$this->den;
	}
	
	public function get_paquete()
	{
		return $this->paquete;
	}
	public function get_descripcion()
	{
		return $this->descripcion;
	}
	public function get_dimention_l()
	{
		return $this->dimention_l;
	}
	public function get_dimention_h()
	{
		return $this->dimention_h;
	}
	public function get_dimention_w()
	{
		return $this->dimention_w;
	}
	public function get_volumenweight()
	{
		return $this->volumeweight;
	}
	
}

?>
